package com.hulk.hyena.project.monitor.job.domain;

import com.hulk.hyena.framework.web.domain.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;


/**
 * @author hulk
 * @email 29572320@qq.com
 * @date 2018-09-25 15:09:21
 */
@ToString(callSuper = true)
public class Task extends BaseEntity {
    private static final long serialVersionUID = 1L;

    //
    @Getter
    @Setter
    private Long id;
    // cron表达式
    @Getter
    @Setter
    private String cronExpression;

    // 任务调用的方法名
    @Getter
    @Setter
    private String methodName;

    // 任务是否有状态
    @Getter
    @Setter
    private String isConcurrent;
    // 任务描述
    @Getter
    @Setter
    private String description;

    // 任务执行时调用哪个类的方法 包名+类名
    @Getter
    @Setter
    private String beanClass;

    // 任务状态
    @Getter
    @Setter
    private String jobStatus;
    // 任务分组
    @Getter
    @Setter
    private String jobGroup;

    // Spring bean
    @Getter
    @Setter
    private String springBean;
    // 任务名
    @Getter
    @Setter
    private String jobName;
    @Getter
    @Setter
    private String misfirePolicy;

    @Getter
    @Setter
    private String methodParams;


}
